.class public Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;
.super Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;
.source "TrimVideoActivity.java"

# interfaces
.implements Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar$b;
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private m:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBarContainer;

.field private n:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

.field private o:Landroid/view/View;

.field private p:Landroid/widget/TextView;

.field private q:J

.field private r:Z

.field private s:I

.field private t:Les/cd;

.field private u:I

.field private v:I

.field private w:[Ljava/lang/String;

.field private x:Lcom/esfile/screen/recorder/media/b;


# direct methods
.method public constructor <init>()V
    .locals 4

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;-><init>()V

    const-wide/16 v0, 0x0

    .line 2
    iput-wide v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->q:J

    const/4 v0, 0x1

    .line 3
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->r:Z

    .line 4
    iput v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->s:I

    const/4 v1, 0x0

    .line 5
    iput v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->u:I

    const/4 v2, 0x2

    new-array v2, v2, [Ljava/lang/String;

    const-string v3, "CropRender"

    aput-object v3, v2, v1

    const-string v1, "RotateRender"

    aput-object v1, v2, v0

    .line 6
    iput-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->w:[Ljava/lang/String;

    return-void
.end method

.method private J()V
    .locals 7

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->n:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    iget-wide v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->q:J

    long-to-int v2, v1

    invoke-virtual {v0, v2}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->setMax(I)V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->n:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    iget v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->u:I

    iget v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->v:I

    invoke-virtual {v0, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->a(II)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->n:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->a()V

    const-wide/16 v0, 0x0

    .line 4
    :goto_0
    iget-wide v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->q:J

    const-wide/16 v4, 0x3e8

    mul-long v2, v2, v4

    cmp-long v6, v0, v2

    if-gez v6, :cond_0

    .line 5
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->x:Lcom/esfile/screen/recorder/media/b;

    const/4 v3, 0x0

    invoke-virtual {v2, v0, v1, v3}, Lcom/esfile/screen/recorder/media/b;->a(JZ)Landroid/graphics/Bitmap;

    move-result-object v2

    .line 6
    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->n:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-virtual {v3, v2}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->a(Landroid/graphics/Bitmap;)V

    .line 7
    iget-wide v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->q:J

    mul-long v2, v2, v4

    const-wide/16 v4, 0xa

    div-long/2addr v2, v4

    add-long/2addr v0, v2

    goto :goto_0

    .line 8
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->x:Lcom/esfile/screen/recorder/media/b;

    if-eqz v0, :cond_1

    .line 9
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/b;->c()V

    :cond_1
    return-void
.end method

.method private K()Les/cd;
    .locals 8

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->t:Les/cd;

    .line 2
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->n:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-virtual {v1}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->getLeftCursorValue()I

    move-result v1

    .line 3
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->n:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->getRightCursorValue()I

    move-result v2

    .line 4
    iget v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->s:I

    const/4 v4, 0x1

    if-ne v3, v4, :cond_2

    .line 5
    iget-object v3, v0, Les/cd;->b:Les/cd$s;

    if-nez v3, :cond_0

    .line 6
    new-instance v3, Les/cd$s;

    invoke-direct {v3}, Les/cd$s;-><init>()V

    iput-object v3, v0, Les/cd;->b:Les/cd$s;

    .line 7
    :cond_0
    invoke-static {v0, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/a;->b(Les/cd;II)V

    if-nez v1, :cond_1

    int-to-long v3, v2

    .line 8
    iget-wide v5, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->q:J

    cmp-long v7, v3, v5

    if-nez v7, :cond_1

    const/4 v1, 0x0

    .line 9
    iput-object v1, v0, Les/cd;->b:Les/cd$s;

    goto :goto_0

    .line 10
    :cond_1
    iget-object v3, v0, Les/cd;->b:Les/cd$s;

    int-to-long v4, v1

    iput-wide v4, v3, Les/cd$s;->a:J

    int-to-long v1, v2

    .line 11
    iput-wide v1, v3, Les/cd$s;->b:J

    goto :goto_0

    :cond_2
    if-nez v3, :cond_4

    .line 12
    iget-object v3, v0, Les/cd;->c:Les/cd$m;

    if-nez v3, :cond_3

    .line 13
    new-instance v3, Les/cd$m;

    invoke-direct {v3}, Les/cd$m;-><init>()V

    iput-object v3, v0, Les/cd;->c:Les/cd$m;

    .line 14
    :cond_3
    invoke-static {v0, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/a;->a(Les/cd;II)V

    .line 15
    iget-object v3, v0, Les/cd;->c:Les/cd$m;

    int-to-long v4, v1

    iput-wide v4, v3, Les/cd$m;->a:J

    int-to-long v1, v2

    .line 16
    iput-wide v1, v3, Les/cd$m;->b:J

    :cond_4
    :goto_0
    return-object v0
.end method

.method private L()V
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->r:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->r:Z

    .line 3
    invoke-static {p0}, Les/s6;->a(Landroid/content/Context;)Les/s6;

    move-result-object v0

    invoke-virtual {v0}, Les/s6;->l()Z

    move-result v0

    if-nez v0, :cond_0

    .line 4
    invoke-static {p0}, Les/s6;->a(Landroid/content/Context;)Les/s6;

    move-result-object v0

    invoke-virtual {v0}, Les/s6;->n()V

    .line 5
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->Q()V

    :cond_0
    return-void
.end method

.method private M()V
    .locals 2

    .line 1
    sget v0, Les/x4;->trim_range_seek_bar_container:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBarContainer;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->m:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBarContainer;

    .line 2
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity$a;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity$a;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBarContainer;->setRangeSeekBarContainerListener(Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBarContainer$e;)V

    .line 3
    sget v0, Les/x4;->trim_range_seek_bar:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->n:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    .line 4
    iget v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->s:I

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->setMaskMode(I)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->n:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-virtual {v0, p0}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->a(Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar$b;)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->n:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity$b;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity$b;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->setInteraction(Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar$a;)V

    .line 7
    sget v0, Les/x4;->cut_seekbar_infobar:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->o:Landroid/view/View;

    .line 8
    sget v0, Les/x4;->trim_preview_btn:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->p:Landroid/widget/TextView;

    .line 9
    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method private N()Z
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->n:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->getMax()I

    move-result v0

    .line 2
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->n:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-virtual {v1}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->getLeftCursorValue()I

    move-result v1

    .line 3
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->n:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->getRightCursorValue()I

    move-result v2

    .line 4
    iget v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->s:I

    if-nez v3, :cond_0

    sub-int/2addr v0, v2

    add-int/2addr v1, v0

    const/16 v0, 0x3e8

    if-ge v1, v0, :cond_0

    const/4 v0, 0x0

    return v0

    :cond_0
    const/4 v0, 0x1

    return v0
.end method

.method private O()V
    .locals 9

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->N()Z

    move-result v0

    if-nez v0, :cond_0

    .line 2
    sget v0, Les/z4;->durec_subtitle_duration_limit_prompt:I

    invoke-static {v0}, Les/ec;->a(I)V

    return-void

    .line 3
    :cond_0
    invoke-static {}, Les/dd;->a()Les/cd;

    move-result-object v2

    .line 4
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->v()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v2, Les/cd;->a:Ljava/lang/String;

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->n:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->getLeftCursorValue()I

    move-result v0

    .line 6
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->n:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-virtual {v1}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->getRightCursorValue()I

    move-result v1

    .line 7
    iget v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->s:I

    const-string v4, "RotateRender"

    const-string v5, "CropRender"

    const/4 v6, 0x2

    const/4 v7, 0x1

    const/4 v8, 0x0

    if-nez v3, :cond_2

    new-array v3, v6, [Ljava/lang/String;

    aput-object v5, v3, v8

    aput-object v4, v3, v7

    .line 8
    iget-object v4, v2, Les/cd;->c:Les/cd$m;

    if-nez v4, :cond_1

    .line 9
    new-instance v4, Les/cd$m;

    invoke-direct {v4}, Les/cd$m;-><init>()V

    iput-object v4, v2, Les/cd;->c:Les/cd$m;

    .line 10
    :cond_1
    iget-object v4, v2, Les/cd;->c:Les/cd$m;

    int-to-long v5, v0

    iput-wide v5, v4, Les/cd$m;->a:J

    int-to-long v0, v1

    .line 11
    iput-wide v0, v4, Les/cd$m;->b:J

    const/4 v0, 0x4

    const-string v1, "removeMid"

    move-object v5, v1

    const/4 v6, 0x4

    goto :goto_0

    :cond_2
    if-ne v3, v7, :cond_4

    new-array v3, v6, [Ljava/lang/String;

    aput-object v5, v3, v8

    aput-object v4, v3, v7

    .line 12
    iget-object v4, v2, Les/cd;->b:Les/cd$s;

    if-nez v4, :cond_3

    .line 13
    new-instance v4, Les/cd$s;

    invoke-direct {v4}, Les/cd$s;-><init>()V

    iput-object v4, v2, Les/cd;->b:Les/cd$s;

    .line 14
    :cond_3
    iget-object v4, v2, Les/cd;->b:Les/cd$s;

    int-to-long v7, v0

    iput-wide v7, v4, Les/cd$s;->a:J

    int-to-long v0, v1

    .line 15
    iput-wide v0, v4, Les/cd$s;->b:J

    const-string v0, "trim"

    move-object v5, v0

    goto :goto_0

    .line 16
    :cond_4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->w:[Ljava/lang/String;

    const-string v1, ""

    move-object v3, v0

    move-object v5, v1

    const/4 v6, 0x0

    :goto_0
    const/4 v4, 0x1

    move-object v1, p0

    .line 17
    invoke-static/range {v1 .. v6}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditPreviewActivity;->a(Landroid/app/Activity;Les/cd;[Ljava/lang/String;ILjava/lang/String;I)V

    return-void
.end method

.method private P()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->N()Z

    move-result v0

    if-nez v0, :cond_0

    .line 2
    sget v0, Les/z4;->durec_subtitle_duration_limit_prompt:I

    invoke-static {v0}, Les/ec;->a(I)V

    return-void

    .line 3
    :cond_0
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->K()Les/cd;

    move-result-object v0

    invoke-static {v0}, Les/dd;->a(Les/cd;)V

    .line 4
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method private Q()V
    .locals 1

    .line 1
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity$d;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity$d;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;)V

    invoke-virtual {p0, v0}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;I)V
    .locals 2

    .line 5
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "extra_video_path"

    .line 6
    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string p1, "mode"

    .line 7
    invoke-virtual {v0, p1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const/high16 p1, 0x14000000

    .line 8
    invoke-virtual {v0, p1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 9
    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->L()V

    return-void
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;)Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->n:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    return-object p0
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;)Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBarContainer;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->m:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBarContainer;

    return-object p0
.end method

.method private c(Ljava/lang/String;)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 2
    new-instance v0, Lcom/esfile/screen/recorder/media/b;

    invoke-direct {v0}, Lcom/esfile/screen/recorder/media/b;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->x:Lcom/esfile/screen/recorder/media/b;

    .line 3
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Les/v4;->durec_trim_snippet_min_side_max_width:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v0

    .line 4
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->x:Lcom/esfile/screen/recorder/media/b;

    invoke-virtual {v1, v0}, Lcom/esfile/screen/recorder/media/b;->b(I)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->x:Lcom/esfile/screen/recorder/media/b;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/media/b;->a(Ljava/lang/String;)V

    return-void
.end method


# virtual methods
.method protected B()V
    .locals 2

    .line 1
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->z()Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->setTimeRenderFlags(I)V

    return-void
.end method

.method protected C()Z
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->n:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->getLeftCursorValue()I

    move-result v0

    iget v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->u:I

    if-ne v0, v1, :cond_1

    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->n:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    .line 2
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->getRightCursorValue()I

    move-result v0

    iget v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->v:I

    if-eq v0, v1, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    goto :goto_1

    :cond_1
    :goto_0
    const/4 v0, 0x1

    :goto_1
    return v0
.end method

.method protected F()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->P()V

    return-void
.end method

.method public I()V
    .locals 3

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->s:I

    const/4 v1, 0x0

    if-nez v0, :cond_0

    .line 2
    invoke-static {p0}, Les/s6;->a(Landroid/content/Context;)Les/s6;

    move-result-object v0

    invoke-virtual {v0}, Les/s6;->k()Z

    move-result v1

    .line 3
    sget v0, Les/z4;->durec_guide_remove_middle_video_slider:I

    goto :goto_0

    :cond_0
    const/4 v2, 0x1

    if-ne v0, v2, :cond_1

    .line 4
    invoke-static {p0}, Les/s6;->a(Landroid/content/Context;)Les/s6;

    move-result-object v0

    invoke-virtual {v0}, Les/s6;->m()Z

    move-result v1

    .line 5
    sget v0, Les/z4;->durec_guide_cut_video_slider:I

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    :goto_0
    if-nez v1, :cond_2

    return-void

    .line 6
    :cond_2
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity$c;

    invoke-direct {v1, p0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity$c;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;I)V

    invoke-virtual {p0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    return-void
.end method

.method protected a(Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;)V
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->w:[Ljava/lang/String;

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a([Ljava/lang/String;)V

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;JZ)V
    .locals 0

    .line 4
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->z()Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;

    move-result-object p1

    long-to-int p3, p2

    invoke-virtual {p1, p3}, Lcom/esfile/screen/recorder/videos/edit/player/c;->c(I)V

    return-void
.end method

.method protected a(Landroid/content/Intent;)Z
    .locals 2

    const/4 v0, 0x1

    const-string v1, "mode"

    .line 3
    invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result p1

    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->s:I

    if-eq p1, v0, :cond_1

    if-nez p1, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :cond_1
    :goto_0
    return v0
.end method

.method public b(Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;JZ)V
    .locals 0

    .line 15
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->z()Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;

    move-result-object p1

    long-to-int p3, p2

    invoke-virtual {p1, p3}, Lcom/esfile/screen/recorder/videos/edit/player/c;->c(I)V

    return-void
.end method

.method protected b(Ljava/lang/String;)Z
    .locals 4

    .line 2
    invoke-static {p1}, Lcom/esfile/screen/recorder/utils/i;->h(Ljava/lang/String;)J

    move-result-wide v0

    iput-wide v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->q:J

    .line 3
    iget v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->s:I

    const/4 v3, 0x1

    if-ne v2, v3, :cond_1

    .line 4
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->t:Les/cd;

    iget-object v2, v2, Les/cd;->b:Les/cd$s;

    if-eqz v2, :cond_0

    .line 5
    iget-wide v0, v2, Les/cd$s;->a:J

    long-to-int v1, v0

    iput v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->u:I

    .line 6
    iget-wide v0, v2, Les/cd$s;->b:J

    long-to-int v1, v0

    iput v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->v:I

    goto :goto_0

    :cond_0
    long-to-int v1, v0

    .line 7
    iput v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->v:I

    goto :goto_0

    :cond_1
    if-nez v2, :cond_3

    .line 8
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->t:Les/cd;

    iget-object v2, v2, Les/cd;->c:Les/cd$m;

    if-eqz v2, :cond_2

    .line 9
    iget-wide v0, v2, Les/cd$m;->a:J

    long-to-int v1, v0

    iput v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->u:I

    .line 10
    iget-wide v0, v2, Les/cd$m;->b:J

    long-to-int v1, v0

    iput v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->v:I

    goto :goto_0

    :cond_2
    long-to-int v1, v0

    .line 11
    iput v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->v:I

    .line 12
    :cond_3
    :goto_0
    :try_start_0
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->c(Ljava/lang/String;)V

    .line 13
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->J()V

    .line 14
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->I()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    return v3

    :catch_0
    const/4 p1, 0x0

    return p1
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 0

    const/4 p3, 0x1

    if-ne p1, p3, :cond_0

    const/4 p1, -0x1

    if-ne p2, p1, :cond_0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->P()V

    :cond_0
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->p:Landroid/widget/TextView;

    if-ne p1, v0, :cond_0

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->O()V

    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-virtual {p0}, Landroid/app/Activity;->isFinishing()Z

    move-result p1

    if-eqz p1, :cond_0

    return-void

    .line 3
    :cond_0
    sget p1, Les/y4;->durec_video_edit_trim_layout:I

    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->h(I)V

    .line 4
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->M()V

    .line 5
    invoke-static {}, Les/dd;->a()Les/cd;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->t:Les/cd;

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->onDestroy()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->n:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->a()V

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->x:Lcom/esfile/screen/recorder/media/b;

    if-eqz v0, :cond_1

    .line 5
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/b;->c()V

    :cond_1
    return-void
.end method

.method protected onPause()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->onPause()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->x:Lcom/esfile/screen/recorder/media/b;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/b;->d()V

    :cond_0
    return-void
.end method

.method public u()Ljava/lang/String;
    .locals 1

    const-string v0, "\u89c6\u9891\u88c1\u5207\u9875\u9762"

    return-object v0
.end method

.method protected x()I
    .locals 1

    .line 1
    sget v0, Les/z4;->durec_common_ok:I

    return v0
.end method

.method protected y()I
    .locals 2

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/trim/TrimVideoActivity;->s:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    .line 2
    sget v0, Les/z4;->durec_common_trim:I

    return v0

    .line 3
    :cond_0
    sget v0, Les/z4;->durec_remove_middle:I

    return v0
.end method
